#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"
#include"queue.h"
void TestStack() {
	ST ps;
	StackInit(&ps);
	StackPush(&ps, 1);
	StackPush(&ps, 2);
	printf("%d ", StackTop(&ps));
	StackPop(&ps);
	StackPush(&ps, 3);
	StackPush(&ps, 4);
	StackPush(&ps, 5);
	while (StackEmpty(&ps)) {
		printf("%d ", StackTop(&ps));
		StackPop(&ps);
	}
	
}
void TestQueue() {
	ST ps;
	QueueInit(&ps);
	QueuePush(&ps, 1);
	QueuePush(&ps, 2);
	QueuePush(&ps, 3);
	QueuePush(&ps, 4);
	QueuePush(&ps, 5);
	while (!QueueEmpty(&ps)) {
		printf("%d ", QueueTop(&ps));
		QueuePop(&ps);
	}
}
int main() {
	TestStack();
}